package org.com.coolfish.common.database.entity;

import java.io.Serializable;
import java.math.BigDecimal;

import javax.persistence.Entity;
import javax.persistence.Table;

@Table(name = "kuyu_package_price")
@Entity
public class KuyuPackagePrice extends IdEntity implements Serializable{
	private static final long serialVersionUID = 1L;
	private Integer id;	
	private Integer uid;
	private Integer aid;			//关联kuyu_agent主键
	private Integer pid;			//对应kuyu_package的id
	private BigDecimal price;		//月卡对应的价格
	private Integer status;			//上下架状态 1为上架 2为下架
	private BigDecimal parentprice; //上级定价
	private Integer operatorid;
	private Integer sort;			//排序
	public KuyuPackagePrice() {
		super();
	}
	public KuyuPackagePrice(Integer id, Integer uid, Integer aid, Integer pid, BigDecimal price, Integer status,
			BigDecimal parentprice, Integer operatorid, Integer sort) {
		super();
		this.id = id;
		this.uid = uid;
		this.aid = aid;
		this.pid = pid;
		this.price = price;
		this.status = status;
		this.parentprice = parentprice;
		this.operatorid = operatorid;
		this.sort = sort;
	}
	
	
	public KuyuPackagePrice(BigDecimal price) {
		super();
		this.price = price;
	}
	
	public KuyuPackagePrice(BigDecimal price, BigDecimal parentprice) {
		super();
		this.price = price;
		this.parentprice = parentprice;
	}


	public KuyuPackagePrice(Integer aid, BigDecimal price, BigDecimal parentprice) {
		super();
		this.aid = aid;
		this.price = price;
		this.parentprice = parentprice;
	}
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public Integer getUid() {
		return uid;
	}
	public void setUid(Integer uid) {
		this.uid = uid;
	}
	public Integer getAid() {
		return aid;
	}
	public void setAid(Integer aid) {
		this.aid = aid;
	}
	public Integer getPid() {
		return pid;
	}
	public void setPid(Integer pid) {
		this.pid = pid;
	}
	public BigDecimal getPrice() {
		return price;
	}
	public void setPrice(BigDecimal price) {
		this.price = price;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public BigDecimal getParentprice() {
		return parentprice;
	}
	public void setParentprice(BigDecimal parentprice) {
		this.parentprice = parentprice;
	}
	public Integer getOperatorid() {
		return operatorid;
	}
	public void setOperatorid(Integer operatorid) {
		this.operatorid = operatorid;
	}
	public Integer getSort() {
		return sort;
	}
	public void setSort(Integer sort) {
		this.sort = sort;
	}
	
	
}
